package mka.puzzle.shape;

/***
 * Square
 * @version 20131124
 * 
 * @author NguyenBB
 */
public class SimpleSquare extends SimpleShape {
	private double side;

	public SimpleSquare() {
		super();
		this.side = 0;
	}

	public SimpleSquare(double side) {
		super();
		this.side = side;
	}
	
	public String getName() {
		return "Square";
	}

	public double getSide() {
		return side;
	}

	public void setSide(double side) {
		this.side = side;
	}

	public double getPerimeter() {
		return 4 * side;
	}
	
	public double getArea() {
		return side * side;
	}

}
